Retirement tax questions

as I understand it earnings are calculated proportionally, that is period earnings x ( 25,000 / total ROTH IRA value ). If you had mutual funds in there that rose substantially, then that gain is counted partially as earnings.
Yes, only the earnings on the $25,000 would go back to the Traditional IRA.

The earnings don't get reported on your return, only the nominal amount ($25,000).