Piecewise linear interpolation is a simple way of connecting points through straight lines
So eq. Of line joining first 2 points is
Y-x=6
So at x=4 , y is 10