The numbers of products a store sold on 4 consecutive days were x,x+5,x+3 and x+12. if the daily average of the products sold was 13. What is the value of x?