I watched a total of 25 math algebra and dog videos yesterday. If the number of dog videos was three less than the number of algebra videos, how many of each did I watch?