SOLVING REAL-LIFE SITUATION INVOLVING FUNCTION