Gave up on the math one - ain't nobody got time for that.
I pasted a screenshot into chatgpt and it got it right first try.
But I'm not a robot :(