Given:
![XR=x+8](https://img.qammunity.org/2019/formulas/mathematics/high-school/9m0v2or21xnvra7vi3kiutsh1mxs2n6y0v.png)
![RY=4x-10](https://img.qammunity.org/2019/formulas/mathematics/high-school/gmaeww8zropfzonqiqlxty40pde9nblcu1.png)
Since R is the midpoint of the line, we can set XR equal to RY and solve for x.
![RY=XR](https://img.qammunity.org/2019/formulas/mathematics/high-school/xenpjwj3j4llrvloax4xhbthdxa2gw02dg.png)
![4x-10=x+8](https://img.qammunity.org/2019/formulas/mathematics/high-school/682l75vdj3kwbsogd2e4xdoex8j2f60naa.png)
![4x=x+18](https://img.qammunity.org/2019/formulas/mathematics/high-school/q7ct33fa0t41sk137w6av6kl4sx9hdg4pp.png)
![3x=18](https://img.qammunity.org/2019/formulas/mathematics/high-school/16dw44n99qxj1y56xf0lbmvsao8er1zgn1.png)
![x=6](https://img.qammunity.org/2019/formulas/mathematics/high-school/pcw7ukmhvd40f93rpy6r6h8i9vizrbu9zl.png)
Now we know what x is. We can plug in x to RY and XR and then add it all together to find XY. Let's find XR:
![XR=6+8](https://img.qammunity.org/2019/formulas/mathematics/high-school/ojxp8fq4ics3ysjx07pwxc8ydgvq0qnfwf.png)
![XR=14](https://img.qammunity.org/2019/formulas/mathematics/high-school/vu5gby9u9z36vpg6t6oj6m3nn31757hgml.png)
Let's find RY now:
![RY=4(6)-10](https://img.qammunity.org/2019/formulas/mathematics/high-school/i2qbt88si19slqax73ztob789bxvyzhf5t.png)
![RY=24-10](https://img.qammunity.org/2019/formulas/mathematics/high-school/m4jf5an0ppkxhqcj7yhtlqaut9y60elwun.png)
![RY=14](https://img.qammunity.org/2019/formulas/mathematics/high-school/8qdfbv8rbe9o22hqgo3bxddo0pc5hujkei.png)
Since we know that:
![XR+RY=XY](https://img.qammunity.org/2019/formulas/mathematics/high-school/d4qme4ykwez4y76orrahuks6ku8n6t8ekd.png)
We can plug in our answers:
![14+14=XY](https://img.qammunity.org/2019/formulas/mathematics/high-school/geoppjc8towpssutvq0zmqcb3scoe7eegw.png)
Final answer:
![XY=28](https://img.qammunity.org/2019/formulas/mathematics/high-school/8cz4yv20vy96khnlhxzbkxa84rhvcb5v2p.png)