If there are four 2's, then all the 5's in the above equation would be converted to 10's.
If there are either 10's, then all the 0's in the above equation would be converted to10's.
LS, you are right. For the first formula, the answer is 6. For the second, 8. When I simplify, I made some mistakes. While 5 requires one 2, 25 requires two 2's.