I'm trying to get a picture like this:
However, I'm having trouble with having the lines spanning between the arrows and having the arrows go exactly to the widths in the picture. This question is similar, but it fills the arrows with the actual lengths of the bars, instead of the $y_2$ and $y_1$ etc that I need.
Here is my MWE so far -- which is nothing close to what I need:
\documentclass{standalone}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\usetikzlibrary{quotes,angles}
\usepackage{tkz-euclide}
\usetkzobj{all}
\begin{document}
\begin{tikzpicture}
\draw
(3,0) coordinate (a) node[right] {$A_1$}
-- (0,0) coordinate (b)
-- (-2,2) coordinate (c) node[above] {$A_2$}
pic["$\alpha$",draw=MidnightBlue,<->,angle eccentricity=1.2,angle radius=0.8cm] {angle=a--b--c};
\tkzLabelSegment[below=2pt](a,b){a}
\tkzLabelSegment[left=2pt](b,c){b}
\end{tikzpicture}
\end{document}
This code results in:


