Evaluate the line integral $\int_C \ x^2 dx+(x+y)dy \ $ 
Evaluate the line integral $$\int_C \ x^2 dx+(x+y)dy \ $$
  where $C$ is the path of the right triangle with vertices $(0,0), (4,0)$ and $(0,10)$  starts from the origin and goes to $(4,0)$ then to $(0,10)$ then back to the origin.

I did this problem but the answer is incorrect. First I looked at it from $(0,0)$ to $(4,0)$
THe magnitude of $r'(t)$ was $4$. 
$r(t) = \langle 4t,0 \rangle$ for $0 \le t \le 1$. 
Using this information I got $40/3$ as my answer after evaluating the integral. 
Then I looked at the point from $(4,0)$ to $(0,10)$
$r(t)=\langle 4-4t,10t \rangle$ for $0 \le t \le 1$
The magnitude of $r'(t)$ is $2 \sqrt{29}$
Using this information I got $\frac{74}{3}\sqrt{29}$ as my answer after evaluating the integral.
Then I looked at the point from $(0,10)$ to $(0,0)$
$r(t) = \langle 0,-10t \rangle$ for $-1 \le t \le 0$
The magnitude of $r'(t)$ is $10$
Evaluating the integral I got the answer of $50$
Adding all three my final answer was $196.1673986$ but lon capa says this is incorrect. Can someone tell me where I am making a mistake? 

The line integrations along each leg look like
$$ (0,0) \ \rightarrow \ (4,0) \ : \ \ dy \ = \ 0 \ \ \Rightarrow \ \ \int_0^4 \ x^2 \ dx \ \ ;  $$
$$ (4,0) \ \rightarrow \ (0,10) \ : \ \ y \ = \ 10 - \frac{10}{4}x \ \ \Rightarrow \ \ \int_4^0 \ x^2 \ dx \ + \ (x \ + \ [10 - \frac{10}{4}x]) \ (- \frac{10}{4} \ dx) $$
[note that the first term reverses the integration along the leg on the $ \ x-$ axis (which gives $ \ \frac{64}{3} \ $ ) , so we'll drop it]
$$  \int_4^0 \   \frac{15}{4}x \ - \ 25 \ \ dx  \  \ = \ (\frac{15}{8}x^2 \ - \ 25x) \ \vert^0_4 \ = \ -\frac{15}{8} \cdot 4^2 \ + \ 100 \ = \ 70 \ \ ;  $$
$$ (0,10) \ \rightarrow \ (0,0) \ : \ \ dx \ = \ 0 \ , \ x \ = \ 0 \ \ \Rightarrow \ \ \int_{10}^0 \ (x+y) \ dy \ = \ 0 \ + \ \frac{1}{2} y^2 \ \vert_{10}^0 $$
$$ = \ -\frac{100}{2} \ = \ -50 \ \ .  $$
So the sum around the triangle is 
$$ [ \frac{64}{3} ] \ + \ \left( \ [-\frac{64}{3} ] \ - \ 30 \ + \ 100 \ \right) \ - \ 50 \ = \ 20 \ \ , $$
confirming the Green's Theorem result found by NotNotLogical.
