Hello, buses to Seville are cheap because they have to compite with AVE, you can buy one way ticket I think by 3000 pesetas more or less, I guess you could find a room by more or less the same by night. So if you stay to nights in Madrid with the bus ticket you will spend more or less 9000 ptas = 45$
You will have to add food, etc..