A thin triangle has vertices (0,0), (1,0), and (0,2). Let the density function at any given point on the triangle be represented by ρ(x,y)=1+3x+y. The mass of the triangle can be represented by p/q, where p and q are coprime positive integers. What is the value of p+q?