First figure out the downslope and 'normal' forces of the 50kg mass
Downslope = 50 sin27 = 22.69
Normal = 50 cos27 = 44.55 kg
Since you are pushing the box UP the hill the force of friction is acting against you ...down the hill
coeff of fric = .4 .4 x normal force = friction force = .4 (44.55kg) = 17.82 kg
to push the box uphill you must overcome the friction force and the downslope force
Pushing force = 17.82 + 22.69 kg = 40.51 kg force