Consider the set of all path homotopy classes of paths in $X$ with $[f]\cdot[g]=[f*g]$ defining a binary operation. We have a groupoid with the following conditions:
1) $[c_p][f]=[f]=[f][c_q]$ where $p=f(0)$, $q=f(1)$ and $[c_r]$ denotes a path constant at $r$.
2) $([f]\cdot[g])\cdot[h] =[f]( [g][h])$ where $f(1)=g(0)$ and $g(1)=h(0)$
3) every path has an inverse.
How can I prove condition 2 (associativity of groupoid) by use of positive linear maps? this proof is in Munkres book but I don't understand it.