The picture shows a complementary angle. Which means the angle will add up to 90 degrees. So to find the the value of r, take the two angles and add them up equal to 90:
3r+4+8r-2=90
Combine like terms:
11r+2=90
Subtract 2 to 90:
11r=88
Divide 11 to both sides:
r=8