Try this - I do not think you need to use UNSW_Maths table - appears to be trying to retrieve course code twice. The focus is to id the students in the course, that are school leavers and failed the course.
SELECT [Student Profile].UNSW_MATHS_COURSE_CODE
,Grade.GRADE_DESCR...