(Exercise 5.16, Bonahon, Low-dimensional geometry) Let $X$ be a bounded polygon in $\mathbb{R}^2, \mathbb{H}^2$ or $\mathbb{S}^2$ consisting of finitely many disjoint convex polygons $X_1, X_2,\dotsc, X_m$. Let $\bar{X}$ be obtained by gluing together pairs of edges of $X$.
We assume that for every vertex $P$ of $X$, the angles of $X$ at the vertices that are glued together to $P$ add up to $2\pi$, so that $\bar{X}$ is a euclidean, hyperbolic, or spherical surface.
The quotient space $\bar{X}$ is now decomposed into $m$ images of the convex polygons $X_i$, $n$ images of the $2n$ edges of $X$ and $p$ point images of the vertices of $X$.
The Euler characteristic of $X$ is defined as the integer $$\chi(\bar{X})=m-n+p$$
I have shown the second part of the question which states: For each of the convex polygons $X_i$, $$\sum_{j=1}^{v_i} \theta_j = (v_i-2)\pi + K \text{Area}(X_i),$$ where $X_i$ has $v_i$ vertices, and $\theta_j$ are the angles of $X_i$ at the vertices. For the euclidean case we mean the usual are and $K=0$, for the hyperbolic case we have in mind the hyperpolic area and $K=-1$, whereas for the spherical case $K=1$ and Area$(X_i)$ denotes the spherical area.
We shall use the above result in order to show that $$2\pi \chi(\bar{X}) = K \text{Area}(X)\enspace (*)$$
I have tried to write down what I know, namely $K\text{Area}(X)= K\sum_{i=1}^{m} \text{Area}(X_i)= (\sum_k \theta_k)[(\sum_i v_i)-2m]\pi $, where $k$ ranges over all the vertices in $X$ so that we sum all the angles of the polygons in $X$ and $\sum_i v_i$ represents the sum of all the vertices in $X$. The term $-2\pi m$ in the latter expression and the term $2\pi m$ of the left hand side in $(*)$ differ by a sign, so this may be a good start. Do you have any suggestions how to proceed?
Hint (assuming you use the correction in my comment above): You have not yet taken advantage of one of the key pieces of information given in the problem: "for every vertex $P$ of $\bar X$, the angles of $X$ at the vertices that are glued together to $P$ add up to $2\pi$". Each such set of vertices of $X$, one per vertex $P$ of $\bar X$, is called a vertex cycle of the polygon $X$.
The general strategy here is that you want to rearrange your sum of angles $\sum \theta_j$ (where the sum is taken over all vertices of the polygon $X$) into a sum of terms with each term being a sum over a vertex cycle, hence the number of such terms equals $p$, each individual term sums to $2\pi$, and so $\sum \theta_j = 2 \pi p$. This should simplify the problem quite a bit.