Source: http://mathematiques.ac.free.fr/IMG/pdf/Fonctions_affines_exercices_2de.pdf