On the coordinate plane, there are two regions, M and N. Region M is determined by the inequalities y⩾0, y⩽x, and y⩽2−x. Region N changes with t, and is determined by the inequality t⩽x⩽t+1, where t ranges from 0 to 1. Let f(t) be the area of the intersection of regions M and N. Find f(t):