A graph like this should do what you want
NetGraph[
{
AggregationLayer[Times, 1],
AppendLayer[],
LinearLayer[{}]
},
{{NetPort["Input"], 1} -> 2 -> 3},
"Input" -> 2
]
AggregationLayer
is combining the two values using Times
AppendLayer
is appending the product the the input
LinearLayer
is learning the linear transformation