Judge teaches math to Amber Heard's lawyer.