How do I write an equation that would allow someone to find the value of R

Answer:
R+239=3501
Step-by-step explanation:
Add the three 1,167 values together and you get 3,501. Then, because we know a portion of the three blocks is equal to 239, add it so when we solve for R, 239 is subtracted from the total.
As for solving it,
Subtract 239 on both sides, and R is 3501-239 = 3262