repeated column data filter and make as a row

I need to get the output in row wise for the repeated column data

Ex:
Input:

que = five
ans = 5

que = six
ans = 6

Required output:

que = five six
ans = 5 6

Any body can guide me?""""""

awk -F"=" '{ a[$1]=a[$1]" "$2;next}END { for(i in a) print i "  " a }'  input.txt

echo "Que = `grep "que" s | cut -d"=" -f2 | xargs`"
echo "Ans = `grep "ans" s | cut -d"=" -f2 | xargs`"

-----Post Update-----

"s" is the filename

-----Post Update-----

"s" is the filename