It's unclear what you're trying to do.
"Trial and error method to find out the values" implies that there is one value/solution for the calculation you're trying to perform. But, because of the interdependent of B5 & B6, their values will depend on the starting values and number of iterations after which you stop.
Maybe the correct relationship/calculations for these two cells should be different from your initial post?