Look at the diagram. Since we are on a frictionless incline, the only force acting on the blue object along the incline is the component of the force of gravity ( ) parallel to it, i.e. ).
So, the net force acting on the object along the incline is given by:
But what do we know about ? Newton's second law!