We are given that a block is sliding up an incline. A diagram of the situation is given as follows:
To determine the acceleration we will add the forces parallel to the ramp, we will call this direction the x-direction:

Where:

Now we determine the x-component of the weight by using the trigonometric function sine:

Now we multiply both sides by "mg":

Now we substitute this value in the sum of forces:

Now, to determine the force of friction we will use the following formula:

Where:

To determine the normal force we add the forces in the direction perpendicular to the ramp, we will call this direction the y-direction:

Where:

Now, since there is no movement in the y-direction, the sum of forces is equal to zero:

Now we solve for the normal force:

Now we calculate the y-component of the weight using the trigonometric function cosine:

Now we substitute this value in the expression for the friction force:

Now we substitute this value in the sum of forces in the x-direction:

Now, since the sum of forces is equivalent to the product of the mass by the acceleration we have:

We can take "-mg" as a common factor on the left side:

We can cancel out the mass:

Now we substitue the values:

Now we solve the operations:

Therefore, the acceleration is -7.8 meters per second squared.