P.E. gained by the block=mgh=15J net energy W gained by the block=30-15=15J
W=Fs F=10N
F=ma a=10 ms^-2
Since 30J is done by the constant force only, it is required to consider the amount of the P.E. gained by the block. Also, in this case, F is the resultant force of the block. It is no need to consider the weight of the block when calculating the acceleration.