Write SQL query to solve given problem: Calculate the average satisfaction of the good students with their courses.. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT CAST(SUM(sat) AS REAL) / COUNT(course_id) FROM registration WHERE grade = 'B'