some of the answer to that specific question is related to the amount of pawns present in the position. the file they are located on and how advanced they are. as well as the location of the two kings.
a queen is worth 9 points. the two rooks are worth 10 points.
a queen has the ability to move diagonally but it cannot protect and support herself the way the two rooks can.
as you mature in chess, the queen becomes less impressive and you are more willing to trade it for equal material or a TANGIBLE advantage.
i think that queen would be better but what do you guys think