Retrieve variable in component for another component

I am working on making an online assessment for one of my elementary teachers. She wants to have students “show” what a fraction is. for instance 4/5. I would like to make a slider where students can set the denominator of the fraction bar. I have all of the pieces but I can’t figure out how to pull a variable from one graph and make it a variable for another. Can anyone help me??

To set a variable in a graph from a variable, n, within another graph (here named graph1):

number(`n`): graph1.number(`n`)

They can be different variable names if desired.

Just in case, I’ll expand on Daniel_Grubbs’s answer by pointing you to the documentation which shows where to place your code. Computation Layer Documentation

Thanks guys! So simple!