We can simulate the decrease in size for Jack and Jill with the javascript below:
- let jack = 1π;
- let jill = 2.25π;
- while( jack > 0 ) {
- jack -= jill * 0.000001;
- jill -= jack * 0.000001;
- }
- console.log(jill);
We will find Jill’s size area to be 6.333 in the console. Divide by π and square root to get Jill’s radius after facing Jack: 1.42.