In the figure, angles $\angle ABC$ and $\angle AST$ are right angles. If $AC = 35,$ then what is $AS$?