A Problem-solving approach to intermediate algebra