.
Hello,
I know this elementary Physics/Mechanics as good as I know the School Math, and I would be ready answer your question . . . BUT.
But your question is formulated in a strange way.
The TRADITIONAL question would be about the magnitude of the force directed along the incline
needed to prevent the block from slipping down the plane.
Can you confirm, looking into your source, that the problem really asks about HORIZONTAL force in both cases ?
==================
You may look into the lesson
- Using vectors to solve problems in Mechanics: Force, Problems 3, 4 and 5
in this site.
Closely related problems were solved there in TRADITIONAL formulation, so you can use them as samples and as approach to your problem.
But if in your problem the force under the question really is horizontal, then the solution requires one more step.
If and then you confirm my request, I will help you to solve your problem.