(Please help I’m really struggling I will give brainliest too :-) for the figure shown on the right, find the value of the variable and the measures of the angles

Answer:
x = 40
m∠Q = 105°
m∠R = 40°
m∠P = 35°
Step-by-step explanation:
Sum of Angles in a Triangle: 180°
Step 1: Define variables
m∠Q = 2x + 25
m∠R = x
m∠P = x - 5
Step 2: Set up equation
m∠Q + m∠R + m∠P = 180°
2x + 25 + x + x - 5 = 180°
Step 3: Solve for x
4x + 20 = 180
4x = 160
x = 40
Step 4: Solve for measure angles.
m∠Q = 2x + 25
m∠Q = 2(40) + 25 = 80 + 25 = 105°
m∠R = x
m∠R = 40°
m∠P = x - 5
m∠P = 40 - 5 = 35°