Your examples are using Descriptive notation. For example, "Queen to Rook 5" (Q-R5) means "move the queen to the fifth row of the board (viewed from my perspective), and to the same column that had a rook in the starting position". You may notice that "Rook 5" could refer to two different squares, one on the leftmost column of the board and one on the rightmost. If you needed to distinguish between the two because the queen could move to either square, you'd say something like "Queen to King's Rook 5" (Q-KR5).

Descriptive notation was popular in English-speaking countries for most of the 20th century, and if you buy a chess book written before 1980 the moves will likely be in this format, but it is now basically obsolete.

Everyone has now pretty much moved over to Algebraic notation, which is much simpler. The rows of the chessboard are numbered from 1 to 8 moving away from White, and the columns are lettered from a to h from left to right from White's point of view. So White's move "Queen to King's Rook 5" in descriptive would be "Queen h5" (Qh5) in algebraic, and Black's move "Queen to King's Rook 5" would be "Queen h4" (Qh4).

Algebraic notation is much simpler than descriptive and is also the overwhelmingly more popular method of describing chess moves today, so I recommend that you use it.