I'm not sure how to set up the equations to solve a problem like:
Flying to Kampala with a tailwind a plane averaged 158 km/h. On the return trip the plane only averaged 112 km/h while flying back into the same wind. Find the speed of the wind and the speed of plane in still air.
If you call $v_p$ the speed of the plane and $v_w$ the speed of the wind then
$$v_p+v_w=158\\ v_p-v_w=112$$
Now solve the system.