Answer:
r=5.
Step-by-step explanation:
Since we know we can convert a a number with any base to base ten(10) by multiplying the corresponding powers of the base.Stating form the LSB(Least Significant Bit) and with the power 0 and the power will increase by 1 as we move to MSB(Most Significant Bit).
![4*r^1+1*r^0 = 21](https://img.qammunity.org/2020/formulas/computers-and-technology/college/tyoo3qcfy5hduvv6g7i305q28pwgyvdsgd.png)
![4r = 21 -1](https://img.qammunity.org/2020/formulas/computers-and-technology/college/tnummyswkagjvkavshy78n7pa792y3ilv1.png)
![4r=20](https://img.qammunity.org/2020/formulas/computers-and-technology/college/hjrykkuyzqkxzpgda9bhz9wki9pa1tk2bg.png)
![r=5](https://img.qammunity.org/2020/formulas/mathematics/middle-school/naxxyglucx4si1d12c1fhqb8yi58sa8luc.png)