Hello! I am creating an activity where students must input the algebraic representation for a 2D figure that is dilated on the coordinate plane. I have an initial latex that shows "(x, y)→ " and students’ responses would be something like “(x, y)→ (2x, 2y)”. I want to check for correctness and provide feedback but I am getting stuck.

Any suggestions on how to do this?

Thanks.