Another way to say "rats and rabbits are both rodents" is "Two types of rodents are rats and rabbits."