My daughter is learning about comparison problems. I would like to know how to write one and solve it.

If she's learning about them, there must be some examples in her text. Study them and if you get in trouble, post one here for help.