I need help on this maths question. Hope that someone can assist me. Thanks in advance.

Tom and Jerry each has some money. If Tom spends $90 per day and Jerry spends $45 per day. Tom will have $1100 left when Jerry has spent all his money. If Tom spends $45 each day and Jerry spends $90 each day, Tom will have $1700 left when Jerry has spent all his money. How much did Jerry have?