the force marked ? is adjacent to 30 degrees, 80N is the hypotenuse, so 80 cos30 is the relevant amount of force. In the exact opposite direction, friction is 40N, so the net force on the object is (80cos30)-40 N. Given that F=ma, you have F and m, solve for a.