The 157 joules does not seem relevant to the second question, Dem.
Jacksaunt, are you sure the second question asked for amount of force rather than work? Are these the exact questions in the form your teacher/book gave them?
For the first problem
Work = Force * distance
W = F d
W = 157 J
d = 6 m
F = ? N
F = W / d
F = 157 J / 6 m ≈ 26.2 N
The angle of the ramp is irrelevant as you know the length of the path travelled and the work done by the object.
I'm dumb. You do need the angle of the ramp.
Try 2:
I'll just make the assumption the ramp is 6m long and 4m high and work based on that.
Step 1: Finding the angle of the ramp
Since
sin(Angle) = Opposite / Hypotenuse
Angle = arcsin ( Opposite / Hypotenuse )
Angle = arcsin ( 4 / 6 ) = arcsin ( 2 / 3 ) = 41.8 degrees
A = 41.8 deg
Step 2: Finding the component of the force of gravity along the ramp
For an object to be in equilibrium, in other words to be able to move at constant velocity, the forces acting on it need to add up to 0.
The force to be applied on the object will be upwards along the ramp. However, the force of gravity on the box is partially acting along the ramp as it is sloped. This 'component' of the force of gravity acts downwards along the ramp.
To have the box at equilibrium and allow it to move with constant velocity on the ramp, the forces acting on the box along the ramp need to add up to 0, meaning the force up the slope we need to apply on the box is equal in size to the component of gravity acting on it.
Since the angle of the ramp is 41.8 degrees, the component of the force of gravity acting along the ramp is given by
sin(41.8) = ( Component of gravity along the ramp / Force of gravity on the box )
sin(41.8) = ( F[g along ramp] / F[g] )
The force of gravity acting on an object F[g] is given by
F[g] = m * g
m = 4kg
g = 9.81 ms-2
F[g] = 39.2
Meaning the component of gravity along the ramp is
F[g along ramp] = F[g] * sin(41.8)
F[g along ramp] = 39.24 * 2/3 = 26.16 N
Since the force acting on the box up the ramp must be equal in size to the force acting on it down the ramp, the force needed to push it up with constant velocity is
F = 26.16 ≈ 26.2
which is uhhh .. equal to the value found with F = W / d ... lol
(at least it seems I was right in assuming that the ramp is 4m high)